<include file="Public:header" />
<div class="container">
<!-- 提供给网页领取优惠券 -->
  
  <notempty name="canUse">
    <div class="block_out">
          <div class="block_inner">
              <!--<h6>优惠券信息</h6>
                <p>优惠券名称：{$coupon.title}</p>
                <p>{$coupon.intro}</p>-->
                <p><img src="{:getThumbPath($coupon['cover'])}" style="max-width:100%;"/></p>
                <p style="display:none;">
                <if condition="!empty($coupon['start_time']) && !empty($coupon['end_time'])">
                活动时间：{$coupon.start_time|day_format} 至 {$coupon.end_time|day_format}
                </if>
                <if condition="empty($coupon['start_time']) && !empty($coupon['end_time'])">
                截止时间：{$coupon.end_time|day_format}
                </if>                
                </p>
            </div>
        </div>
        <!--<div class="block_out">
          <div class="block_inner">
              <h6>使用说明</h6>
                <p>{$coupon.use_tips}</p>
            </div>
        </div>
        <h6>剩余票数</h6>
        <p>{$exist}</p>-->
  </notempty>
  
  
  
  <div style="height:50px;"></div>
  
  
  <empty name="canUse">
    <div><img src="{:getThumbPath($coupon['end_img'])}"></div>
  
  
  <else/>
  
  
  <form action="{:U('receive')}" method="post" style="padding:10px 0;">
    <input type="hidden" name="member_id" value="{$member_id}">
    <input type="hidden" name="coupon_id" value="{$coupon_id}">

    <button type="submit" class="btn btn-lg btn-success" style="display:block; margin:0 auto; position:fixed; bottom:5px; width:98%; margin:1%; padding:0 100%; padding:10px 0">立即领取</button>
  </form>
</empty>

</div>
<include file="Public:footer" /> 